package com.weishaoying.practice.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * Created by WeiShaoying on 2017/12/21.
 */
@RestController
//@RequestMapping("/bcc")
public class FkController {

    public FkController() {
        System.out.println("---------FkController-----");
    }

    @Value("${aa.bb.ee}")
    private String abe;

    @Value("${year}")
    private String year;

    @Value("${author.address}")
    private String authorAddress;

    private Random random = new Random();


    @RequestMapping("/hi")
    public String sayHello() {
        return random.nextFloat() + "-BCC FK系统-" + abe + "-" + year + "-" + authorAddress;
    }
}
